﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Report.aspx.cs" Inherits="JoinParty.admin.FlowStep.Report" ValidateRequest="false" %>

<%@ Register Src="../Control/UserMessage.ascx" TagName="UserMessage" TagPrefix="UC" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server">
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>
                        <f:Button ID="btnSaveClose" ValidateForms="SimpleForm1" Icon="SystemSaveClose" OnClick="btnSaveClose_Click"
                            runat="server" Text="保存并关闭">
                        </f:Button>
                        <f:Button ID="btnSubmit" runat="server" CssClass="marginr" OnClick="btnSubmit_Click" Icon="Tick"
                            Text="提交">
                        </f:Button>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Items>
                <f:SimpleForm ID="SimpleForm1" ShowBorder="false" ShowHeader="false" runat="server" BodyPadding="10px" Title="SimpleForm" Width="750">
                    <Items>
                        <f:ContentPanel ID="cPanel" runat="server" ShowBorder="false" ShowHeader="false">
                            <div style="padding-left: 30px">
                                <UC:UserMessage ID="UserM" runat="server" />
                            </div>
                        </f:ContentPanel>
                        <f:CheckBoxList ID="cblMaterial" runat="server" Label="材料清单" LabelAlign="right" ColumnNumber="2" ColumnVertical="true" LabelWidth="80px">
                            <f:CheckItem Text="入党申请书" Value="0" Selected="true" />
                            <f:CheckItem Text="入党积极分子培养考察登记表" Value="1" Selected="true" />
                            <f:CheckItem Text="历次思想汇报材料" Value="2" Selected="true" />
                            <f:CheckItem Text="党校培训班结业证明" Value="3" Selected="true" />
                            <f:CheckItem Text="政审原始材料" Value="4" Selected="true" />
                            <f:CheckItem Text="公示材料" Value="5" Selected="true" />
                            <f:CheckItem Text="自传" Value="6" Selected="true" />
                            <f:CheckItem Text="推优育苗情况表（28周岁以下团员入党）" Value="7" Selected="true" />
                            <f:CheckItem Text="入党志愿书（支部大会讨论通过后10天内）" Value="8" Selected="true" />
                        </f:CheckBoxList>
                        <f:CheckBoxList ID="cblMaterial2" runat="server" ColumnNumber="2" ColumnVertical="true" Hidden="true" Label="材料清单" LabelAlign="right" LabelWidth="80px">
                            <f:CheckItem Text="公示情况" Value="9" Selected="true" />
                            <f:CheckItem Text="预备期历次思想汇报材料" Value="10" Selected="true" />
                            <f:CheckItem Text="转正申请书" Value="11" Selected="true" />
                            <f:CheckItem Text="《预备期党员考察表》" Value="12" Selected="true" />
                        </f:CheckBoxList>

                        <%--<f:HtmlEditor ID="heContent" runat="server" Label="备注" LabelAlign="right" LabelWidth="80px" Width="650"></f:HtmlEditor>--%>
                        <f:Label ID="lbContent" runat="server" Label="备注" LabelAlign="left"></f:Label>
                        <f:ContentPanel ID="cpContent" runat="server" ShowBorder="false" ShowHeader="false">
                            <script type="text/plain" name="editorContent" id="editorContent"></script>
                        </f:ContentPanel>

                        <%--<f:HtmlEditor ID="heResult" runat="server" Label="审核结果" Hidden="true" LabelWidth="80px" LabelAlign="right"></f:HtmlEditor>--%>
                        <f:Label ID="lbResult" runat="server" Label="审核结果" Hidden="true" LabelAlign="left"></f:Label>
                        <f:ContentPanel ID="cpResult" runat="server" ShowBorder="false" Hidden="true" ShowHeader="false">
                            <script type="text/plain" name="editorResult" id="editorResult"></script>
                        </f:ContentPanel>
                    </Items>
                </f:SimpleForm>
            </Items>
        </f:Panel>
        <f:Window ID="WSetpThree" Title="编辑" Hidden="true" EnableIFrame="true" runat="server"
            EnableMaximize="true" EnableResize="true" Target="Top" IsModal="True" Width="550px"
            Height="350px">
        </f:Window>
    </form>
</body>
<script src="../../../../Resource/js/jquery/jquery.min.js"></script>
<script src="../../../../Resource/ueditor/ueditor.config.js"></script>
<script src="../../../../Resource/ueditor/ueditor.all.min.js"></script>
<script>
    var containerClientID = '<%= SimpleForm1.ClientID %>';
    var editor1, editor2;
    var config = {
        initialFrameWidth: '100%',
        initialFrameHeight: '400px',
        enableAutoSave: false,
        saveInterval: 100000,
        elementPathEnabled: false,
        autoHeightEnabled: false,
        autoFloatEnabled: false,
        onready: function () {
        }
    };
    F.ready(function () {
        config.onready = function () {
            // 重新布局外部容器
            doLayout();
            updateEditor(editor1, '<%= this.ContentContent%>');
        }
        editor1 = UE.getEditor('editorContent', config);

        config.onready = function () {
            // 重新布局外部容器
            doLayout();
            updateEditor(editor2, '<%= this.ResultContent%>');
        }
        editor2 = UE.getEditor('editorResult', config);

    });

    // 更新编辑器内容
    function updateEditor(editor, content) {
        if (editor && editor.isReady) {
            editor.setContent(content);
        }
    }

    function doLayout() {
        if ((editor1 && editor1.isReady) && (editor2 && editor2.isReady)) {
            // 重新布局外部容器
            F(containerClientID).doLayout();
        }
    }
</script>
</html>
